package com.design.model;

/**
 * def
 *
 * @author lw
 * @date 2023/12/4 15:29
 **/
public class RemoteControl {

    private Command command;

    public void setCommand(Command command) {
        this.command = command;
    }

    public void pressButton() {
        command.execute();
    }
}
